RELEASE = 0
UNICODE = 0

FLAGS = RELEASE=$(RELEASE)

LOGIC_PROTOCOL_PATH = ./WINApt_Logic/WINApt_LogicProtocol
LOGIC_SQLPACKET_PATH = ./WINApt_Logic/WINApt_LogicSql

APP_WINAPT_PATH = ./WINApt_ServerApp

NETENGINE_LIB = libWINApt_LogicProtocol.so libWINApt_LogicSql.so NetEngine_SlStream.exe
.PHONY:MakeAll 
MakeAll:$(NETENGINE_LIB)
	
libWINApt_LogicProtocol.so:
	make -C $(LOGIC_PROTOCOL_PATH) $(FLAGS)
libWINApt_LogicSql.so:
	make -C $(LOGIC_SQLPACKET_PATH) $(FLAGS)

NetEngine_SlStream.exe:
	make -C $(APP_WINAPT_PATH) $(FLAGS)
	
SetFlags_Install:
	export FLAGS=InstallAll
InstallAll:SetFlags_Install $(NETENGINE_LIB) 
   
SetFlags_Clean:
	export FLAGS=CleanAll
CleanAll:SetFlags_Clean $(NETENGINE_LIB) 
